package com.shortlink.gateway;

import com.shortlink.common.config.OpenFeignConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

/**
 * 网关服务应用启动器
 *
 * @author wp
 */
@SpringBootApplication
@Import(OpenFeignConfiguration.class)
@EnableFeignClients
@EnableDiscoveryClient
public class GatewayServiceApplication {
    public static DiscoveryClient discovery;
    public static void main(String[] args) {
        SpringApplication.run(GatewayServiceApplication.class, args);
    }
}
